home *** CD-ROM | disk | FTP | other *** search
- From: James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de>
- Message-ID: <9603130943.AA22777@lts.sel.alcatel.de>
- X-Original-Date: Wed, 13 Mar 96 10:43:22 +0100
- Path: in2.uu.net!bounce-back
- Date: 13 Mar 96 16:19:35 GMT
- Approved: fjh@cs.mu.oz.au
- Organization: -
- In-Reply-To: bonnardv@pratique.fr's message of 12 Mar 1996 20:23:00 PST
- Newsgroups: comp.std.c++
- Subject: Re: Some ideas about C++ and a question
- References: <v01530500ad6a43009478@[194.98.4.120]>
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMUb1+OEDnX0m9pzZAQEwIAF+JTd5dr1wXXInqZ/9nKJU/MCA7HThGq6s
- 5eZyA7CRxnl+LFeUgjZ3lJIMz5AbZ+0m
- =0Dxy
-
- In article <v01530500ad6a43009478@[194.98.4.120]> bonnardv@pratique.fr
- (Valentin Bonnard) writes:
- |> clamage@Eng.Sun.COM (Steve Clamage) wrote:
- |> >Valentin Bonnard <bonnardv@pratique.fr> writes:
-
- |> >>4) Conversion of Type** to const Type**
- |> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- |> >
- |> >>It's ok, this is an error; but why cannot Type** be converted to
- |> >>const Type* const* ?
-
- It can. It was banned in the C standard, and the C++ committee only
- changed this rule recently, so it is possible that many compilers
- don't implement it yet. (It was banned by mistake in the C standard;
- the wording to forbid Type** -> Type const** was made too tight.)
-
- |> >For the same reason: it could cause a violation of constness without
- |> >a cast. The draft standard does allow Type** to be converted to
- |> >"Type*const*", since that cannot cause any such violation.
-
- |> I don't see how you could violate constness _without_ the cast; if you
- |> know, please tell me.
-
- I think Steve just misread your statement. (I know I did the first
- time through.) Why you cannot convert Type** to Type const** is
- almost a FAQ, and since since that was the title of point 4...
-
- --
- James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr
- GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
- Conseils, itudes et rialisations en logiciel orienti objet --
- -- A la recherche d'une activiti dans une region francophone
- ---
- [ comp.std.c++ is moderated. To submit articles: try just posting with ]
- [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
- [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
- [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
- [ Comments? mailto:std-c++-request@ncar.ucar.edu ]
-